home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / BYACC__ / SYMTAB.H < prev    next >
Text File  |  1989-11-19  |  685b  |  38 lines

  1. #ifndef    SYMTAB
  2. #define    SYMTAB
  3.  
  4. #define    UNKNOWN        0
  5. #define    TERMINAL    1
  6. #define    NONTERMINAL    2
  7.  
  8. /* WARNING:  In addition to its internal use, UNDEFINED is also the default */
  9. /*         value of the error token.                        */
  10. #define UNDEFINED    (-1)
  11.  
  12. typedef
  13.   struct bucket
  14.     {
  15.       struct bucket *left;
  16.       struct bucket *right;
  17.       struct bucket *next;
  18.       int length;
  19.       char *key;
  20.       char *tag;
  21.       char *prname;
  22.       short index;
  23.       short value;
  24.       short prec;
  25.       char form;
  26.       char class;
  27.       char assoc;
  28.       char used;
  29.     }
  30.   bucket;
  31.  
  32. extern bucket *first_symbol;
  33. extern bucket *lookup();
  34. extern bucket *make_bucket();
  35. extern char *mk_prname();
  36.  
  37. #endif
  38.